import { ToastAndroid } from 'react-native';

import CommonUtils from './common';
import GlobalConfig from './Global';

/**
 * 跳转至信道页面
 * @param {导航组件} navigate
 */
exports.signalChannel = (navigate) => {
    navigate(GlobalConfig.SIGNAL_CHANNEL_VIEW);
}

/**
 * 测试功能页面
 * @param {导航组件} navigate
 */
exports.testFunction = (navigate) => {
    navigate(GlobalConfig.TESTING_VIEW);
}

/**
 * 设置页面
 * @param {导航组件} navigate
 */
exports.settingFunction = (navigate) => {
    navigate(GlobalConfig.SETTING_VIEW);
}

/**
 * 下挂设备
 * @param {导航组件} navigate
 */
exports.underbarrelDevice = (navigate) => {
    navigate(GlobalConfig.UNDERBARREL_DEVICE_VIEW);
}

/**
 * 流量
 * @param {导航组件} navigate
 */
exports.dataFlow = (navigate) => {
    navigate(GlobalConfig.DATA_FLOW_VIEW);
}